// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'


//导入mui的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import Mui from 'vue-awesome-mui'
Vue.use(Mui)

//引入mint-ui
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

//引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//引入字体图标
import '../src/assets/icon/iconfont.css'

//引入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
import '../src/assets/font/iconfont'

//引入video.js
import Video from 'video.js'
import "video.js/dist/video-js.min.css";
Vue.prototype.$video = Video
import 'videojs-flash'

import App from './App'
import router from './router'

//全局定义返回上一页方法
Vue.prototype.goBack = function(){
	this.$router.go(-1)
}

Vue.config.productionTip = false

//全局自定义获取focus指令
Vue.directive('focus',{
	inserted:function(el){
		el.focus()
	}
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
